package com.mango.service;


import com.mango.facade.param.Category;
import com.mango.repository.CategoryRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CategoryService {
    @Autowired
    private CategoryRepository categoryRepository;


    public List<Category> getCategoryList(String categoryParentId) {
        return  categoryRepository.getCategoryList(categoryParentId);
    }

    public List<Category> getCategoryListAll() {
        return  categoryRepository.getCategoryListAll();
    }
}
